<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <h1>{{msg}}</h1>
        <img :src="imgSrc" alt=""/>
        <!-- 这个width的100是字符串类型的100  -->
        <img v-bind:src="imgSrc" width="100" alt="">
        <!-- 这个width的100是数字类型的100  -->
        <img v-bind:src="imgSrc" v-bind:width="100" alt="">
        <img v-bind:src="imgSrc" v-bind:width="imgWidth" alt="">
        <!-- 简写成单冒号 -->
        <img :src="imgSrc":width="imgWidth" alt="">
    </div>
   <script>
     const vm = new Vue({
        el:"#app",
        data(){
            return{
                msg:"这是你媳妇",
                imgSrc:"https://t7.baidu.com/it/u=3065092861,1536340632&fm=193&f=GIF",
                imgWidth:200,
            }
        }
    })
   </script>
</body>
</html>